# @Time    : 2021/1/19 11:19
# @Author  : LDY
# @Email   : 274884591@qq.com
# @File    : Config.py
# @desc    : 存放各种配置信息
# @Software: PyCharm
import os


class Dir:
    WoniusalesUrl = "http://localhost:8080/WoniuSales_20180508_V1.4_bin/"
    OrderUrl = "https://pc.dhb168.com/Auth/Index/manager_index"
    ConfigDIR = os.path.dirname(__file__)
    BaseDIR = os.path.dirname(os.path.dirname(__file__))
    ChromeDriverDIR = os.path.join(ConfigDIR + "\\chromedriver.exe")
    FirefoxDriverDIR = os.path.join(ConfigDIR + "\\geckodriver.exe")
    LogsDIR = os.path.join(BaseDIR + "\\Logs\\")
    TestDataDIR = os.path.join(BaseDIR + "\\TestData\\")
    TestDataAPIDIR = os.path.join(TestDataDIR + "API\\Ordertreasure\\")
    TestCaseDIR = os.path.join(BaseDIR + "\\TestCase\\")
    TestReportDIR = os.path.join(BaseDIR + "\\TestReport\\")
    PicturesDIR = os.path.join(TestDataAPIDIR + "Pictures\\")
    # 订货宝GUI的报告路径和数据文件路径
    OrderReport = os.path.join(TestReportDIR + "GUI\\Ordertreasure\\")
    OrderData = os.path.join(TestDataDIR + "GUI\\Ordertreasure\\")
    TestGUIPath = os.path.join(TestCaseDIR + "GUI\\Ordertreasure\\")

    # 订货宝API的报告路径和数据文件路径
    OrderAPIReport = os.path.join(TestReportDIR + "API\\Ordertreasure\\")
    OrderAPIData = os.path.join(TestDataDIR + "API\\Ordertreasure\\")
    TestAPIPath = os.path.join(TestCaseDIR + "API\\Ordertreasure\\")


if __name__ == '__main__':
    # print(Dir.BaseDIR)
    # print(Dir.ConfigDIR)
    # print(Dir.ChromeDriverDIR)
    # print(Dir.LogsDIR)
    # print(Dir.TestDataDIR)
    # print(Dir.TestCaseDIR)
    # print(Dir.TestReportDIR)
    print(Dir.TestGUIPath)
